home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / classic.jar / skin / classic / global / toolbarbutton.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2008-04-08  |  4.9 KB  |  165 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-1999
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. /* ===== toolbarbutton.css =====================================================
  40.   == Styles used by the XUL button element.
  41.   ======================================================================= */
  42.  
  43. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  44.  
  45. /* ::::: toolbarbutton ::::: */
  46.  
  47. toolbarbutton {
  48.   -moz-appearance: toolbarbutton;
  49.   -moz-box-align: center;
  50.   -moz-box-pack: center;
  51.   margin: 0;
  52.   border: 1px solid transparent;
  53.   padding: 3px;
  54.   background-color: transparent;
  55.   color: -moz-DialogText;
  56. }
  57.  
  58. .toolbarbutton-icon {
  59.   -moz-margin-end: 2px;
  60. }
  61.  
  62. .toolbarbutton-text {
  63.   margin: 0 !important;
  64.   text-align: center;
  65. }
  66.  
  67. toolbarbutton.tabbable {
  68.   -moz-user-focus: normal !important;
  69. }
  70.  
  71. toolbarbutton:hover,
  72. toolbarbutton[buttonover="true"] {
  73.   border-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;
  74.   color: -moz-buttonhovertext;
  75. }
  76.  
  77. toolbarbutton:hover:active,
  78. toolbarbutton[open="true"] {
  79.   border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow;
  80.   padding-top: 4px;
  81.   padding-bottom: 2px;
  82.   -moz-padding-start: 4px;
  83.   -moz-padding-end: 2px;
  84.   color: ButtonText;
  85. }
  86.  
  87. toolbarbutton[disabled="true"],
  88. toolbarbutton[disabled="true"]:hover,
  89. toolbarbutton[disabled="true"]:hover:active,
  90. toolbarbutton[disabled="true"][open="true"] {
  91.   border-color: transparent;
  92.   padding: 3px;
  93.   color: GrayText;
  94. }
  95.  
  96. /* ..... checked state ..... */
  97.  
  98. toolbarbutton[checked="true"] {
  99.   border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow !important;
  100.   padding-top: 4px !important;
  101.   padding-bottom: 2px !important;
  102.   -moz-padding-start: 4px !important;
  103.   -moz-padding-end: 2px !important;
  104.   background-image: url("chrome://global/skin/toolbar/Lighten.png");
  105.   color: ButtonText !important;
  106. }
  107.  
  108. toolbarbutton[checked="true"]:hover,
  109. toolbarbutton[checked="true"]:hover:active { 
  110.   color: -moz-buttonhovertext !important;
  111.   background-color: -moz-buttonhoverface !important;
  112. }
  113.  
  114. /* ::::: toolbarbutton menu ::::: */
  115.  
  116. .toolbarbutton-menu-dropmarker {
  117.   -moz-appearance: toolbarbutton-dropdown !important;
  118.   list-style-image: none;
  119.   -moz-image-region: auto;
  120.   border: none !important;
  121.   background-color: transparent !important;
  122.   padding: 0;
  123.   margin: 0;
  124. }
  125.  
  126. .toolbarbutton-menu-dropmarker[disabled="true"] {
  127.   padding: 0 !important;
  128. }
  129.  
  130. /* ::::: toolbarbutton menu-button ::::: */
  131.  
  132. toolbarbutton[type="menu-button"] {
  133.   -moz-box-align: stretch;
  134.   -moz-appearance: dualbutton;
  135.   -moz-box-orient: horizontal !important;
  136. }
  137.  
  138. toolbarbutton[type="menu-button"],
  139. toolbarbutton[type="menu-button"]:hover,
  140. toolbarbutton[type="menu-button"]:hover:active,
  141. toolbarbutton[type="menu-button"][open="true"],
  142. toolbarbutton[type="menu-button"][disabled="true"],
  143. toolbarbutton[type="menu-button"][disabled="true"]:hover,
  144. toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
  145.   border-style: none;
  146.   padding: 0 !important;
  147. }
  148.  
  149. .toolbarbutton-menubutton-button {
  150.   -moz-box-align: center;
  151.   -moz-box-pack: center;
  152.   -moz-box-orient: vertical;
  153. }
  154.  
  155. /* .......... dropmarker .......... */
  156.  
  157. .toolbarbutton-menubutton-dropmarker {
  158.   border: none !important;
  159.   background-color: transparent !important;
  160.   padding: 3px;
  161.   -moz-appearance: toolbarbutton-dropdown !important;
  162.   list-style-image: none;
  163.   -moz-image-region: auto;
  164. }
  165.